<template>
  <div class="xys-bread-item">
    <RouterLink v-if="to" :to="to"><slot /></RouterLink>
    <span v-else><slot/></span>
    <i class="iconfont icon-angle-right"></i>
  </div>
</template>
<script setup>
import {render} from "vue";
defineExpose({
  name:'xys-bread-item'
})
defineProps({
  to: {
    type: [String, Object]
  }
})
</script>
